/*
 * @Author: WuFeng <763467339@qq.com>
 * @Date: 2024-06-04 23:32:23
 * @LastEditTime: 2025-03-14 17:44:50
 * @LastEditors: WuFeng <763467339@qq.com>
 * @Description: 路由
 * @FilePath: \markdown-magic\src\router\index.js
 * @Copyright 版权声明
 */
import { createRouter, createWebHistory } from 'vue-router'

import MarkdownMagic from './modules/MarkdownMagic.js'
import DocumentProcess from './modules/DocumentProcess.js'
import Office from './modules/Office.js'

const routes = [
  {
    path: '/',
    component: () => import('@/pages/Home/page/entry/index.vue'),
    // redirect: '/markdown-magic',
    name: '主页',
    hidden: false,
    meta: {
      top: true
    }
  },
  ...MarkdownMagic,
  ...DocumentProcess,
  ...Office,
  {
    path: '/img-enlarge',
    name: 'ImgEnlarge',
    component: () => import('@/pages/ImgEnlarge/page/entry/index.vue'),
    meta: {
      title: '图片放大'
    }
  },
  {
    path: '/uuid',
    name: 'UUID',
    component: () => import('@/pages/UUID/page/entry/index.vue'),
    meta: {
      title: 'UUID生成器'
    }
  },
  {
    path: '/text-differ',
    name: 'TextDiffer',
    component: () => import('@/pages/TextDiffer/page/entry/index.vue'),
    meta: {
      title: '文本比对'
    }
  },
  {
    path: '/websocket-tester',
    name: 'WebsocketTester',
    component: () => import('@/pages/WebSocketTester/page/entry/index.vue'),
    meta: {
      title: 'websocket测试工具'
    }
  },
  {
    path: '/encdes',
    name: 'Encdes',
    component: () => import('@/pages/Encdes/page/entry/index.vue'),
    meta: {
      title: '文字加密解密'
    }
  },
  {
    path: '/img-to-base64',
    name: 'ImgToBase64',
    component: () => import('@/pages/ImgToBase64/page/entry/index.vue'),
    meta: {
      title: '文字加密解密'
    }
  },
  {
    path: '/NumberTools',
    name: 'NumberTools',
    component: () => import('@/pages/NumberTools/page/entry/index.vue'),
    meta: {
      title: '文字加密解密'
    }
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export const constantRouterMap = routes

export default router
